@extends('app')

@section('content')

<link href="{{ asset('/css/spinners.css') }}" rel="stylesheet">

<div id="grid" class="grid" style="position: fixed;z-index: 1000;left:50%;display: none;">
    <div class="cell">
        <div class="card">
            <span class="throbber-loader">Loading…</span>
        </div>
    </div>
</div>

<ul class="nav nav-tabs">
    <li class="active"><a href="{{ url('/admin/performance')}}">信息列表</a></li>
</ul>

<div class="panel panel-default mt20">

    <div class="table-responsive panel-body">
        <table class="table table-hover">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户名称</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($users as $res)
            <tr id="news_{{ $res->id }}">
                <td>{{ $res->id }}</td>
                <td><a href="javascript:void(0);">{{ $res->name }} </a></td>
                <td>
                    <a href="{{ url('/admin/performance/detail?uid='.$res->id) }}">查看</a>
                    {{--<a href="{{ url('/user/performance/achievement?uid='.$res->id) }}">查看</a>--}}
                    <a href="{{ url('/admin/performance/perf-add?uid='.$res->id) }}">添加</a>
                </td>
            </tr>
            @endforeach
            </tbody>
        </table>
    </div>
    <div></div>
</div>
<script>
    $('.list-group-item').eq(1).addClass('active');
</script>
@endsection
